import React, { Component } from 'react'
import { ConfigProvider } from 'antd';
import zhCN from 'antd/es/locale/zh_CN'; //中文
import styles from './index.less'
import axios from '../../api/axios'

import Course from '../course/courseList/index'
import Test from '../test/index.js'

import Header from '../../components/header/index.jsx'
import Sider from '../../components/sider/index.jsx'
import { Layout } from 'antd'
const { Content } = Layout;


export default class Home extends Component {

    render() {
        return (
            <ConfigProvider locale={zhCN}>
                <Layout className={styles.home}>
                    <Sider />
                    <Layout>
                        <Header />
                        <Content>
                            {this.props.children}
                        </Content>
                    </Layout>
                </Layout>
            </ConfigProvider>
        )
    }
}
